//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04B
TN_Widget.CreateTable([['Pasadena Strawberry Festival: Casey Chesnutt & Easton Corbin','Pasadena Convention Center & Municipal Fairgrounds','Pasadena, TX','Friday','5/17/2024','3:00 PM','6362444','Pasadena-Strawberry-Festival--Casey-Chesnutt---Easton-Corbin-5-17-2024'],['Easton Corbin','The Tailgate','Midland, TX','Saturday','5/18/2024','6:00 PM','6296810','Easton-Corbin-5-18-2024'],['Chris Janson & Easton Corbin','Showplace Theatre At Riverwind Casino','Norman, OK','Saturday','5/25/2024','6:00 PM','6278518','Chris-Janson---Easton-Corbin-5-25-2024'],['Lonestar, Easton Corbin & Drew Baldridge','Gem City - On the Riverfront','Quincy, IL','Sunday','5/26/2024','7:00 PM','6345813','Lonestar--Easton-Corbin---Drew-Baldridge-5-26-2024'],['Easton Corbin','The Capitol Room At Harrisburg Midtown Arts Center','Harrisburg, PA','Friday','6/7/2024','7:00 PM','6315566','Easton-Corbin-6-7-2024'],['Easton Corbin','Gold Strike Casino Resort','Robinsonville, MS','Friday','6/14/2024','8:00 PM','6296358','Easton-Corbin-6-14-2024'],['Easton Corbin','The Camp At Lake Wappapello','Wappapello, MO','Saturday','6/15/2024','8:30 PM','6327196','Easton-Corbin-6-15-2024'],['Easton Corbin','Sonoma-Marin Fairgrounds & Event Center','Petaluma, CA','Saturday','6/22/2024','8:00 PM','6404438','Easton-Corbin-6-22-2024'],['ND Country Fest: Dierks Bentley, Riley Green, Michael Ray & Clint Black - 4 Day Pass','Morton County Fairgrounds','New Salem, ND','Wednesday','7/10/2024','TBD','5879436','ND-Country-Fest--Dierks-Bentley--Riley-Green--Michael-Ray---Clint-Black---4-Day-Pass-7-10-2024'],['Rodney Atkins & Easton Corbin','Cedar County Fairgrounds - IA','Tipton, IA','Saturday','7/13/2024','7:30 PM','6236439','Rodney-Atkins---Easton-Corbin-7-13-2024'],['Easton Corbin & Forgotten Highway','Saline County Fairgrounds - NE','Crete, NE','Friday','7/19/2024','7:30 PM','6358853','Easton-Corbin---Forgotten-Highway-7-19-2024'],['Easton Corbin','Hollywood Casino at The Meadows','Washington, PA','Friday','9/20/2024','8:00 PM','6382323','Easton-Corbin-9-20-2024'],['Easton Corbin','Hollywood Casino at Charles Town Races','Charles Town, WV','Friday','10/11/2024','8:00 PM','6251204','Easton-Corbin-10-11-2024']],'Easton Corbin','http://www.ticketnetwork.com/ticket/Easton-Corbin-events.aspx');